package com.pinapel.aixml.ui;

import javax.swing.tree.DefaultTreeCellRenderer;
import javax.swing.tree.TreeModel;

import org.w3c.dom.Node;


import com.pinapel.aixml.ui.tree.XSDTreeCellRenderer;
import com.pinapel.aixml.ui.tree.XSDTreeModel;

public class ArbolUIXSD extends ArbolUI {
	public ArbolUIXSD() {
		super();
	}

	public void draw(TreeModel tree) {
		tModel = tree;
		renderer = new XSDTreeCellRenderer(tModel.getRoot());
		jTree.setModel(tree);
		jTree.setRootVisible(false);
		jTree.setCellRenderer(renderer);
	}
}
